package com.ruoyi.yljf.service;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.yljf.domain.dto.*;
import org.springframework.web.multipart.MultipartFile;

public interface IAliFileService {

    //获取上传视频凭证
    AjaxResult createUploadVideo(CreateUploadVideoDTO createUploadVideoVo);
    //刷新上传视频凭证
    AjaxResult refreshUploadVideo(RefreshUploadVideoDTO videoVo);
    //上传本地视频
    AjaxResult uploadVideo(VideoDTO videoVo);
    //上传视频流文件
    AjaxResult videoFileUpload(MultipartFile file);
    //上传本地图片
    AjaxResult uploadImage(ImageDTO imageVo);
    //获取播放视频凭证
    AjaxResult getVideoPlayAuth(RefreshUploadVideoDTO refreshUploadVideoVo);
    //获取播放视频地址
    AjaxResult getPlayInfo(RefreshUploadVideoDTO refreshUploadVideoVo);
    //获取安全令牌 TokenVo 无需传
    AjaxResult getSecurityToken(TokenDTO tokenVo);
    //删除视频
    AjaxResult deleteVideoByCode(DeleteVideoDTO deleteVideoVo);
    //批量获取视频信息
    AjaxResult getVideoByIds(VideoByIdsDTO videoByIdsVo);
    //上传本地文件
    String uploadFileOSS(ImageDTO imageVo);

    AjaxResult batchUpload(MultipartFile[] files);
}
